package com.模板方法模式;

/**
 * @author: 
 * @Date: 2022/8/26
 * @Description:
 */
public class TemplateClient {
    public static void main(String[] args) {
        Template template = new Template();
        applyTemplate(template);
    }

    public static void applyTemplate(Template template){
        Callback callback = new SubCallback();
        template.templateMethod(callback);
    }
}